﻿<?
error_reporting(0);
@require_once('global.php');
$domain = $_POST['domain'];
if($domain){
	is_domain($domain) or exit( "<script language=javascript>alert('请输入正确的域名！');location.href='index.php';</script>");
	$content = @file_get_contents("http://".$domain);
	@require_once('cache.php');
	if(file_exists("seo.php")){
		@require_once("seo.php");
		$urls = filehave($urls,$domain);
	}else{
		$urls = fileno($domain);
	}
	writeover("seo.php","<?php\r\n\$urls=".vvar_export($urls).";\r\n?>");
}
include("../config/header.php");
?>
<script type='text/javascript'>
	document.title = '网页源码查看 —— 在线工具';
</script>
<div class="container">
	<div class="panel panel-primary">
		<div class="panel-heading"><h3 class="panel-title">网页源码查看</h3></div>
	</div>
	<div class="form-group">
		<form method="post" name="fmCalcu" id="fmCalcu" action="">
			<div class="input-group">
				<input placeholder="Please input string to be encrypted ..." type="text" name="domain" id="domain" class="form-control" value="<?php echo $domain?>">
				<span class="input-group-btn scan-but-span">
					<input type="submit" class="btn btn-success" value="Try it!"/>
				</span>
			</div>
		</form>
	</div>
	<div class="form-group">
		<div class="panel panel-primary">
			<textarea id="content" name="content" style="width:100%;height:500px;border:1px solid #c5e2f2;overflow:visible;" cols="20" rows="85"><?php echo $content;?></textarea>
		</div>
	</div>
</div>
<?php
include("../config/footer.php");
?>